import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    EBC:'4rM2AM8y',
    //Authorization:localStorage.getItem("token")?localStorage.getItem("token"):'',
    logo:{
        img:{
          //京东logo

      },
    },
    user:{
      id:'',
      username:'',
      password:'',
      mail:'',
    }

  },
  getters: {
  },
  mutations: {
    sendtoken(state,user){
      console.log(state+user)
      // state.Authorization=user;
      // console.log("Store+index"+user)
      // localStorage.setItem('token',user);
    },
    saveuser(state,mail){
      console.log(state+mail);
      // state.user.mail=mail;
    },
    saveusermsg(state,user){
      console.log(state+user);
      // state.user=user;
    }
  },
  actions: {
  },
  modules: {
  }
})
